from . import views
# 标记apps为根目录； 故导包路径从apps算起
from django.urls import re_path



urlpatterns = [
     re_path(r'^api/v1.0/session$', views.LoginView.as_view()),
     #re_path(r'^api/v1.0/user$', views.UserInfoView.as_view()),
     #re_path(r'^api/v1.0/user/avatar$', views.UploadsPesonal.as_view()),
     # re_path(r'^api/v1.0/houses$', views.ReleaseHousingStock.as_view()),
     re_path(r'^api/v1.0/user/houses$', views.MyHouseList.as_view()),
     #re_path(r'^api/v1.0/houses/[int:house_id]/images$', views.UploadHousePicture.as_view()),
     # re_path(r'^api/v1.0/houses/[int:house_id]$', views.HouseInfo.as_view()),
     re_path(r'^api/v1.0/houses/(?P<house_id>\d+)$', views.HouseInfo.as_view()),
     re_path(r'^api/v1.0/orders/[int:order_id]/status$', views.AcceptRejcet.as_view()),
]
